// 关于我们js
var $scope = null;
$(function() {
	var appElement = document.querySelector('[ng-controller=main]');
	$scope = angular.element(appElement).scope();
	  initialPage($scope);
	  //学者列表
	$scope.methods.expertList();
});
// 初始化值
function initialPage($scope) {
	
	
}
var mainApp = angular.module("mainApp", []);
mainApp.controller('main', function($scope) {
	$scope.search={};
	$scope.methods = {
		//关于我们
		expertList : function() {
			$.ajax({
			    url:$.shysUrlPrefix+'/website/getAboutUs',
			    type:'get',
			    dataType:'JSON',
				async:true,  //同步方式发起请求
				  beforeSend: function () {
				        $(".loading").show();
				    },
			    success:function (data) {
					console.log(data.data)
					if (data.data ) {
						$scope.$apply();
						document.getElementById("targetElement").innerHTML = data.data.content;
					} else {
					   
					}
					
			    },
				 complete: function () {
				        $(".loading").hide();
				    },
			
			})
		},
		
		
	};
});











